package com.lagou.dao;

import com.lagou.pojo.User;

import java.util.List;

/**
 * @author lubiao
 * @date 2021/4/2
 * @desc
 */
public interface IUserDao {

    //查询所有
    public List<User> findAll() throws Exception;


    //根据条件查询
    public User findByCondition(User user) throws Exception;


    /**
     * 新增用户
     * @param user 新增的用户对象
     */
    public Integer addUser(User user) throws Exception;

    /**
     * 删除用户
     * @param user 删除的用户对象
     */
    public Integer deleteUser(User user) throws Exception;

    /**
     * 修改用户
     * @param user 修改的用户对象
     */
    public Integer updateUser(User user) throws Exception;

}
